]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extension-app: Use mnemonics in confirmation dialog
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 14 Dec 2023 18:14:33 +0000 (19:14 +0100)
committerMarge Bot <marge-bot@gnome.org>
Thu, 21 Dec 2023 15:06:11 +0000 (15:06 +0000)
Mnemonics (aka "access keys") should be used whenever possible:

https://developer.gnome.org/hig/guidelines/keyboard.html#access-keys

They are currently missing from the confirmation dialog, add them.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3051>

subprojects/extensions-app/js/main.js

index 529db5c547af01f3f674f3b7026b71fc45c0f579..77cac91225ce3aa1a72db34e0b9b9b3a71927c87 100644 (file)
@@ -175,8 +175,8 @@ var ExtensionsWindow = GObject.registerClass({
             secondary_text: _('If you remove the extension, you need to return to download it if you want to enable it again'),
         });
 
-        dialog.add_button(_('Cancel'), Gtk.ResponseType.CANCEL);
-        dialog.add_button(_('Remove'), Gtk.ResponseType.ACCEPT)
+        dialog.add_button(_('_Cancel'), Gtk.ResponseType.CANCEL);
+        dialog.add_button(_('_Remove'), Gtk.ResponseType.ACCEPT)
             .get_style_context().add_class('destructive-action');
 
         dialog.connect('response', (dlg, response) => {